
<div class="form-group">
	<div class="alert alert-warning-light no-margin">
		基础信息
	</div>
</div>
<div class="form-group">

	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">工单编号:</span>
			{$row.workorder_number}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">工单标题:</span>
			{$row.title}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">关联客户:</span>
			<a class="btn-dialog" data-url="qingdongams/customer/customer/detail?ids={$row.customer_id}" data-area=["90%","90%"] data-title="客户详情" >{$row.customer.name}</a>
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">紧急程度:</span>
			{$row.priority}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">过保类型:</span>
			{eq name="$row.is_over" value="1"}过保{else/}未过保{/eq}
		</div>
	</div>


	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">开始时间:</span>
			{$row.start_time}
		</div>
	</div>


	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">预计结束时间:</span>
			{$row.expected_end_time}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">紧急程度:</span>
			{$row.priority}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">过保类型:</span>
			{eq name="$row.is_over" value="1"}过保{else/}未过保{/eq}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">要求维修完成日期:</span>
			{$row.appointment_time}
		</div>
	</div>

	<div class="col-xs-6 col-sm-10">
		<div class="form-group col-sm-10">
			<span class="text-muted">问题说明:</span>
			{$row.desc}
		</div>
	</div>
	<div class="col-xs-6 col-sm-10">
		<div class="form-group col-sm-10">
			<span class="text-muted">注意事项:</span>
			{$row.matters}
		</div>
	</div>

	<div class="col-xs-12 col-sm-12">
		<div class="form-group col-sm-10">
			<span class="text-muted">附件:</span>
			<div class="well">
				{if condition="$row.file"}
				<div class="thumbnail">
					{foreach name="row.file" item="val"}
					<a href="{$val.file_path}" target="_blank">
						<img data-tips-image src="{$val.file_path}" alt=""></a>
					{/foreach}
				</div>
				{/if}
			</div>
		</div>
	</div>

</div>


<div class="form-group">
	<div class="alert alert-warning-light no-margin">
		维修结果
	</div>
</div>
<div class="form-group">

	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">维修结果:</span>
			{eq name="$row.resolved_results" value="1"}
			已解决
			{else/}
			维修失败
			{/eq}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">检查/故障判断:</span>
			{$row.results}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">是否更换配件:</span>
			{eq name="$row.is_replace" value="1"}
			是
			{else/}
			否
			{/eq}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">是否回收配件:</span>
			{eq name="$row.is_recovery" value="1"}
			是
			{else/}
			否
			{/eq}
		</div>
	</div>
	<div class="col-xs-6 col-sm-5">
		<div class="form-group col-sm-10">
			<span class="text-muted">保养注意事项:</span>
			{$row.maintain}
		</div>
	</div>
</div>

<div class="form-group">
	<div class="alert alert-warning-light no-margin">
		收费信息
	</div>
</div>

<div class="form-group">

	<div class="col-xs-12 col-sm-6">
		<div class="form-group col-sm-10">
			<label>工单开始时间:</label>{$row.start_time}
		</div>
	</div>
	<div class="col-xs-12 col-sm-6">
		<div class="form-group col-sm-10">
			<label>完成工作时间:</label>{$row.end_time}
		</div>
	</div>
	<div class="col-xs-12 col-sm-6">
		<div class="form-group col-sm-10">
			<table class="table table-bordered"
				   width="100%">
				<thead>
				<tr>
					<th>收费项目</th>
					<th>收费金额</th>
				</tr>
				</thead>
				<tbody>
				{foreach name="row.pay_service" item="val" key="k"}
				<tr>
					<td>{$val.name}</td>
					<td>{$val.money}元</td>
				</tr>
				{/foreach}
				</tbody>
			</table>

		</div>
	</div>

	<div class="col-xs-12 col-sm-12">
		<div class="form-group col-sm-10">

			<table class="table table-striped table-bordered table-hover table-nowrap"
				   width="100%">
				<thead>
				<tr>
					<th>配件名称</th>
					<th>数量</th>
					<th>金额</th>
					<th>是否收费</th>
				</tr>
				</thead>
				<tbody>

				{foreach name="row.use_parts" item="val" key="k"}
				<tr>
					<td>{$val.name|default="-"}</td>
					<td>{$val.number}</td>
					<td>{$val.price}</td>
					<td>{eq name="$val.is_charge" value="1"}是{else/}否{/eq}</td>

				</tr>
				{/foreach}
				</tbody>
			</table>
		</div>
	</div>

	<div class="col-xs-12 col-sm-3">
		<div class="form-group col-sm-10">
			<label>总费用:</label>
			{$row.total_money}元
		</div>
	</div>
	<div class="col-xs-12 col-sm-3">
		<div class="form-group col-sm-10">
			<label>优惠费用:</label>
			{$row.discount_money}元
		</div>
	</div>
	<div class="col-xs-12 col-sm-3">
		<div class="form-group col-sm-10">
			<label>收取费用:</label>
			{$row.money}元
		</div>
	</div>

	<div class="col-xs-12 col-sm-6">
		<div class="form-group col-sm-10">
			<label>含税方式:</label>
			{$row.tax}
		</div>
	</div>
	<div class="col-xs-12 col-sm-6">
		<div class="form-group col-sm-10">
			<label>收款账号:</label>
			{$row.collection_account}
		</div>
	</div>
	<div class="col-xs-12 col-sm-12">
		<div class="form-group col-sm-10">
			<span class="text-muted">收款账号（图）:</span>
			<div class="well">
				{if condition="$row.collection_img"}
				<div class="thumbnail">
					{foreach name="row.collection_img" item="val"}
					<a href="{$val.url}" target="_blank"><img data-tips-image src="{$val.url}" alt=""></a>
					{/foreach}
				</div>
				{/if}
			</div>
		</div>
	</div>

</div>